package com.baselibrary.net;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.baselibrary.LoggingInterceptorInterface;
import com.baselibrary.net.interceptor.HeaderInterceptor;
import com.baselibrary.net.interceptor.HttpStatusInterceptor;
import com.baselibrary.net.interceptor.LoggingInterceptor;
import com.baselibrary.router.ActivityRouter;

/**
 * @author zhanglijie
 * @description:网络拦截器
 * @date : 2021/05/15
 */
@Route(path = ActivityRouter.LoggingInterceptor.INTERCEPTOR)
public class LoggingInterceptorImp implements LoggingInterceptorInterface {
    @Override
    public void initInterceptor(Context context) {
        LoggingInterceptor loggingInterceptor = new LoggingInterceptor();
        HeaderInterceptor headerInterceptor = new HeaderInterceptor();
        HttpStatusInterceptor httpStatusInterceptor = new HttpStatusInterceptor();
        HttpHelper.getInstance().init(context, null,
                loggingInterceptor, null);
    }

    @Override
    public void init(Context context) {

    }
}
